'use strict';

const conn = require('../../libs/Conn');

module.exports = async function (params) {
    let querySql = `SELECT unit_name AS dataType,unit_id AS value FROM unit_file WHERE unit_type = ? AND delete_sign = 1 AND enable = 1`;
    let rec = await conn(querySql,[params.unit_type]);
    return {success: true, data: rec};

};